-
Notifications
You must be signed in to change notification settings - Fork 1.4k
nrf_security: CRACEN: Let ecdsa sign/verify digest without hash #24017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: b69a9d8a01281b903358ea907397d4b460276c73 more detailssdk-nrf:
Github labels
List of changed files detected by CI (2)
Outputs:ToolchainVersion: c5be9c56c7 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
psa_status = hash_get_algo(alg, &hash_algorithm_ptr); | ||
if (psa_status != PSA_SUCCESS) { | ||
return psa_status; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
psa_status = hash_get_algo(alg, &hash_algorithm_ptr); | |
if (psa_status != PSA_SUCCESS) { | |
return psa_status; | |
} |
0e2588c
to
a6311f6
Compare
ECDSA_SIGN/VERIFY_HASH should not require a hash algorithm to be present Updated so it is not required. Signed-off-by: Dag Erik Gjørvad <[email protected]>
a6311f6
to
b69a9d8
Compare
status = hash_get_algo(alg, &hashalgpointer); | ||
if (status != PSA_SUCCESS) { | ||
return status; | ||
} | ||
if (is_message) { | ||
status = cracen_ecdsa_sign_message_deterministic( | ||
&privkey, hashalgpointer, ecurve, input, input_length, signature); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cracen_ecdsa_sign_digest_deterministic()
below still takes hashalgpointer
, which I guess means requires hash support even though is_message
is false
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deterministic_ecdsa
needs a hash function to work, so you can't run without it even if it is a sign_hash
ECDSA_SIGN/VERIFY_HASH should not require a hash algorithm to be present. Updated so only sign message requires one.